.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  padding: 20px;
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 产品对比表格样式 */
.comparison-row-even {
  background-color: #f8f9fa;
}

.comparison-row-odd {
  background-color: #ffffff;
}

.comparison-row-even:hover,
.comparison-row-odd:hover {
  background-color: #e6f7ff !important;
}

/* 对比表格的表头样式 */
.ant-table-thead > tr > th {
  background-color: #ffffff;
  font-weight: bold;
  text-align: center !important;
  border-bottom: 2px solid #e8e8e8;
  padding: 16px 12px;
  font-size: 16px;
}

/* 强制表头内容居中 */
.centered-table-header .ant-table-thead > tr > th {
  text-align: center !important;
}

.centered-table-header .ant-table-thead > tr > th .ant-table-header-column {
  justify-content: center !important;
}

.centered-table-header .ant-table-thead > tr > th .ant-table-column-title {
  text-align: center !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* 表头中的Space组件也居中 */
.centered-table-header .ant-table-thead > tr > th .ant-space {
  justify-content: center !important;
  width: 100% !important;
}

/* 表头中的div也居中 */
.centered-table-header .ant-table-thead > tr > th div {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

/* 对比表格的单元格样式 */
.ant-table-tbody > tr > td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

/* 参数名称列的特殊样式 */
.ant-table-tbody > tr > td:first-child {
  background-color: #fafafa;
  font-weight: 500;
  border-right: 1px solid #e8e8e8;
  text-align: center;
  width: 150px;
}

/* 产品值列的样式 */
.ant-table-tbody > tr > td:not(:first-child) {
  text-align: center;
  min-width: 200px;
  word-break: break-word;
}

/* 滚动条样式 */
.ant-table-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ant-table-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.ant-table-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 产品选择卡片样式 */
.product-card-selected {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* 浮动按钮样式优化 */
.ant-float-btn-group .ant-float-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 侧边栏样式优化 */
.ant-menu-dark .ant-menu-item-selected {
  background-color: #1890ff;
}

.ant-menu-dark .ant-menu-submenu-title:hover {
  background-color: #303030;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ant-table-scroll {
    overflow-x: auto;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 产品选择框样式优化 */
.ant-select-selector {
  border-radius: 6px !important;
  border: 1px solid #d9d9d9 !important;
}

.ant-select-focused .ant-select-selector {
  border-color: #1890ff !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2) !important;
}

/* 表格容器样式 */
.ant-table-container {
  border-radius: 8px;
  overflow: hidden;
}

.ant-table {
  border-radius: 8px;
}

/* 表格无数据时的样式 */
.ant-empty {
  margin: 40px 0;
}

/* 标题样式优化 */
.ant-typography h2 {
  color: #262626;
  margin-bottom: 0;
}
